package com.sk.skplanet.commute.vo;

import java.util.ArrayList;
import java.util.List;

public class Route extends BusServerVo {
	private String name;
	private long member_id;

	private List<Point> points;

	public Route(long id, String name, long member_id) {
		super(id);
		this.name = name;
		this.member_id = member_id;
		points = new ArrayList<Point>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getMember_id() {
		return member_id;
	}

	public void setMember_id(int member_id) {
		this.member_id = member_id;
	}

	public List<Point> getPoints() {
		return points;
	}

	
	public void addPoint(Point point){
		points.add(point);
	}

	@Override
	public String toString() {
		return "Route [id=" + id + ", name=" + name + ", member_id=" + member_id + "]"+points.toString();
	}

}
